import { lazy } from 'react';
import LazyLoad from '../../components/LazyLoad';
import LayoutCesium from '../../layout/LayoutCesium';
import { RouteItem } from '../Type';

const routers: Array<RouteItem> = [
    {
        element: <LayoutCesium />,
        children: [
            {
                path: '/home',
                element: LazyLoad(lazy(() => import('../../view/home'))),
                meta: {
                    requiresAuth: true,
                    title: '首页',
                    key: 'home',
                },
            },
        ],
    },
];

export default routers;
